﻿using System;
using System.Data;
public partial class _Default : System.Web.UI.Page 
{
    Data data = new Data();
    protected void Page_Load(object sender, EventArgs e)
    {
        string chuyenmuc = "<h2 style='font-weight:bold;padding-left:100px'>abc</h2>";
        DataTable table = data.GetTable_DoanhNghiep();
        int dem = 3;
        for (int i = 0; i < table.Rows.Count; i++)
        {
            chuyenmuc += "<a style='padding-right:100px;font-size:20px;padding-left:100px' href='Index.aspx?DoanhNghiepID=" + table.Rows[i]["DoanhNghiepID"].ToString() + "'>- " 
                + table.Rows[i]["DoanhNghiepDescription"].ToString() + "</a>";
            dem++;
            if (dem % 3 == 0)
            {
                chuyenmuc += "<br/>";
            }
        }
        Literal1.Text = chuyenmuc;
    }

}
